
mkdir -p usr/share/doc/midori
ln -s ../../doc usr/share/doc/midori/user
ln -s home.htm usr/share/doc/midori.html

rm -rf usr/share/icons
rm -f usr/share/applications/midori-private.desktop

mkdir -p usr/share/applications

if [ -f usr/share/applications/midori.desktop ];then
echo '[Desktop Entry]
Version=1.0
Type=Application
Name=Midori web bdrowser
GenericName=Midori
Comment=Midori web browser
Categories=WebBrowser
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
Exec=midori
Icon=/usr/share/icons/hicolor/16x16/apps/midori.png
Terminal=false
StartupNotify=true
X-Osso-Type=application/x-executable
X-Osso-Service=midori' > usr/share/applications/midori.desktop
fi
